{{ $.Scratch.Set "description" "Showcase of various PCB designs Made with KiCad!" }}
{{ partial "header.html" . }}

{{ $currentNode := . }}
{{ .Scratch.Set "sidemenu" false }}
{{ .Scratch.Set "sidemenu_section" "discover" }}
{{ range .Site.Menus.main }}
	{{ if eq "discover" (.Name | lower) }}
		{{ if .HasChildren }}
			{{ $currentNode.Scratch.Set "sidemenu" true }}
		{{ end }}
	{{ end }}
{{ end }}

<div class="container">
	<div class="row">
		<div class="col-md-9 col-sm-9">
			{{ partial "breadcrumb.html" . }}

			<div class="page-heading">
				<h1>Made With KiCad</h1>
				<p>
						These are some KiCad designed projects that have been made by users. If you want to
						be featured along the other showcases on this page please submit a merge request
						<a href="https://gitlab.com/kicad/services/kicad-website">on GitLab</a> if you meet
						the <a href="https://gitlab.com/kicad/services/kicad-website/blob/master/CONTRIBUTING.adoc">contributing guidelines</a>
						for requirements on adding a project!
				</p>
			</div>

			{{ $allSectionContent := where .Site.Pages "Section" "made-with-kicad" }}
			{{ $allSectionContent := where $allSectionContent "Params.projectdeveloper" "!=" nil }}
			{{ $pagesOnlyInSection := where $allSectionContent "Kind" "page" }}

			{{ $paginator := .Paginate $pagesOnlyInSection }}
			{{ template "_internal/pagination.html" . }}
			<hr />
			<div class="row">
				{{ range $paginator.Pages }}
					{{ partial "mwk_entry.html" . }}
				{{ end }}
			</div>
			{{ template "_internal/pagination.html" . }}
		</div>

        <div class="col-md-3">
			{{ partial "mwk_categories.html" . }}
			{{ partial "mwk_submit.html" . }}
        </div>
	</div>
</div>

{{ partial "footer.html" . }}
